package com.my.spring.readcode.demo;

import cn.hutool.core.date.DateTime;
import cn.hutool.core.util.HashUtil;
import cn.hutool.core.util.NumberUtil;
import cn.hutool.core.util.RandomUtil;
import cn.hutool.crypto.SecureUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.stereotype.Component;

import java.util.concurrent.*;

/**
 * @author 王存露
 * @version 1.0.0
 * @date 2021/2/1 9:18
 */
@Component
@Slf4j
public class Start implements CommandLineRunner {
    @Autowired
    private GitHubLookupService gitHubLookupService;

    @Override
    public void run(String... args) throws Exception {
        for (int i = 0; i < 1000000; i++) {
            gitHubLookupService.insetData(i);
        }
    }

}
